import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateCommentDto {
  @ApiProperty({ description: '评论内容', example: '这是一条评论' })
  @IsNotEmpty()
  @IsString()
  content: string;

  @ApiProperty({ description: '用户 ID', example: 1 })
  @IsNotEmpty()
  @IsNumber()
  userId: number;

  @ApiProperty({ description: '话题 ID', example: 1 })
  @IsNotEmpty()
  @IsNumber()
  topicId: number;
}
